package w13;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;

public class Demo7 {
	public static void main(String[] args) throws Exception {
		FileInputStream in = new FileInputStream("e:\\H3C_CAS.pdf");
		BufferedInputStream bin = new BufferedInputStream(in);
		BufferedOutputStream bout = new BufferedOutputStream(new FileOutputStream("e:\\123.pdf"));
		int len = bin.read();
		while (len != -1) {
			bout.write(len);
		}
		System.out.println("复制完成！");
		bin.close();
		bout.close();
	}s
}
